<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>推荐人信息</title>
	<meta name="decorator" content="default"/>

</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/wechat/wechatMember/">微信会员列表</a></li>
		<shiro:hasPermission name="sys:user:edit"><li><a href="${ctx}/wechat/wechatMember/form">微信会员添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="wechatMember" action="${ctx}/wechat/wechatMember/recommend" method="post" class="breadcrumb form-search">

		<label>推荐码 ：</label><form:input path="recommendCode" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>手机 ：</label><form:input path="mobile" htmlEscape="false" maxlength="50" class="input-medium"/>
		
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr>
		<shiro:hasPermission name="sys:user:edit"><th>所属商家</th></shiro:hasPermission>
		<th>ID</th>
		<th>名称</th>
		<th>手机号</th><th>当前积分</th><th>最后签到时间</th><th>注册时间</th></tr></thead>
		<tbody>
		
		<c:forEach items="${recommendMemberList}" var="wechatMember">
			<tr>
				<td>${wechatMember.userName}</td>
				<td>${wechatMember.id}</td>
				<td>${wechatMember.name}</td>
				<td>${wechatMember.mobile}</td>
				<td>${wechatMember.score}</td>
				<td>${wechatMember.lastSignTime}</td>
				<td><fmt:formatDate value="${wechatMember.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				
				</td>
			</tr>

		</c:forEach>
		</tbody>
	</table>
	
</body>
</html>
